package org.dreamwork.persistence;

import java.io.Serializable;

/**
 * Created by IntelliJ IDEA.
 * User: seth
 * Date: 2009-8-21
 * Time: 11:33:24
 */
public class Sort implements Serializable {
    public final String fieldName;
    public final Direction direction;

    public Sort (String fieldName, Direction dir) {
        this.fieldName = fieldName;
        this.direction = dir;
    }

    public static enum Direction implements Serializable {
        ASC, DESC
    }
}